package com.czbank.financing;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableSwagger2
@SpringBootApplication
@MapperScan(basePackages = "com.czbank.financing.mapper" )
@ComponentScan(basePackages = {"com.czbank.financing.service","com.czbank.financing.controller"})
public class FinancingApplication {
    protected static final Logger logger = LoggerFactory.getLogger(FinancingApplication.class);
    public static void main(String[] args) {
        logger.info("SpringBoot开始加载");
        SpringApplication.run(FinancingApplication.class, args);
        logger.info("SpringBoot加载完毕");

    }

}
